<template>
	<view class='newsDetail'>
		<view class='conters'>
			<jyf-parser :html="articleInfo" ref="article"></jyf-parser>
		</view>
		
	</view>

</template>

<script>
	export default{
		data(){
			return {
				articleInfo:'',
				id:'',
				type:'',
			}
		},
		onLoad(e) {
			let that = this
			that.type=e.type
			uni.setNavigationBarTitle({
				title: e.type==1?'用户协议':'隐私政策'
			})
			that.getData()
		},
		methods: {
			getData(){
				let that = this
				that.tui.request("api.data/agreement", "POST", {}, false, false, true).then((res) => {
					console.log(res)
					that.articleInfo = that.type==2?res.data.privacy:res.data.register
					
				}).catch((res) => {
					
				})
			}
		},
	}
</script>

<style lang="scss">
	
	
	.newsDetail .conters {
		padding: 10rpx;
		font-size: 26rpx;
		color: #333;
		line-height: 1.7;
	}
</style>